package com.xiaobai.config;

/**
 * @description: JSESSION管理类
 * @author: 小白白
 * @create: 2021-08-31
 **/

public class MyStudentIdManager {

    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void set(String studentId) {
        threadLocal.set(studentId);
    }

    public static String get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }

    public static boolean visit() {
        return get().equals("111111");
    }

}
